let str = 'my_name_is_jim_green'
var arr = str.split('_')
for (var i = 1; i < arr.length; i++) {
  arr[i] = arr[i].slice(0, 1).toUpperCase() + arr[i].slice(1)
}
str = arr.join('')
console.log(str)
